home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / BOOPSI / GI1 / Include / gadgets / tabs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-27  |  1.4 KB  |  61 lines

  1. #ifndef    GADGETS_TABS_H
  2. #define    GADGETS_TABS_H
  3.  
  4. /*
  5. **    $VER: tabs.h 42.3 (14.2.94)
  6. **    Includes Release 42.1
  7. **
  8. **    Definitions for the tabs BOOPSI gadget class
  9. **
  10. **    (C) Copyright 1994-1999 Amiga, Inc.
  11. **    All Rights Reserved
  12. */
  13.  
  14. /*****************************************************************************/
  15.  
  16. #ifndef EXEC_TYPES_H
  17. #include <exec/types.h>
  18. #endif
  19.  
  20. #ifndef UTILITY_TAGITEM_H
  21. #include <utility/tagitem.h>
  22. #endif
  23.  
  24. #ifndef INTUITION_GADGETCLASS_H
  25. #include <intuition/gadgetclass.h>
  26. #endif
  27.  
  28. /*****************************************************************************/
  29.  
  30. #define    TL_TEXTPEN        0
  31. #define    TL_BACKGROUNDPEN    1
  32. #define    TL_FILLTEXTPEN        2
  33. #define    TL_FILLPEN        3
  34. #define    MAX_TL_PENS        4
  35.  
  36. /*****************************************************************************/
  37.  
  38. /* This structure is used to describe the labels for each of the tabs */
  39. typedef struct tagTabLabel
  40. {
  41.     STRPTR         tl_Label;        /* Label */
  42.     WORD         tl_Pens[MAX_TL_PENS];    /* Pens */
  43.     struct TagItem    *tl_Attrs;        /* Additional attributes */
  44.  
  45. } TabLabel, *TabLabelP;
  46.  
  47. /*****************************************************************************/
  48.  
  49. /* Additional attributes defined by the tabs.gadget class */
  50. #define TABS_Dummy        (TAG_USER+0x04000000)
  51.  
  52. #define    TABS_Labels        (TABS_Dummy+1)
  53.     /* (TabLabelP) Array of labels */
  54.  
  55. #define    TABS_Current        (TABS_Dummy+2)
  56.     /* (LONG) Current tab */
  57.  
  58. /*****************************************************************************/
  59.  
  60. #endif /* GADGETS_TABS_H */
  61.